<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false" %>
<%
    request.setAttribute("PAGE_TITLE", "预约");
%>
<jsp:include page="../../include/head.jsp"/>
<form class="form-horizontal" name="myForm" id="myForm" action="${BasePath}/order/groupOrder/remark" method="post">
    <table id="edittable" style="width:100%;" align="center">
        <tr>
            <td colspan="2" class="column_head" style="font-size:14px;font-weight:bold;height:20px;">
                备注信息
                <input type="hidden" name="id" id="id" value="${groupOrder.id}"/>
            </td>
        </tr>
        <tr>
            <td class="column_name">
                备注
            </td>
            <td class="column_input">
                <input type="text" id="remark" name="remark" value="${groupOrder.remark}"/>
            </td>
        <tr>
            <td colspan="2" class="column_bottom">
                <input name="submit" id="submitbut" type="button" value="提交" onclick="doRemark()"/>
                <input name="reset" type="reset" id="reset" value="重置"/>
            </td>
        </tr>
    </table>
</form>
</body>
</html>
<script>
    function doRemark() {
        var remark = $("#remark").val();
        if (remark == "") {
            layer.msg('请输入备注信心!', {icon: 5});
            return false;
        }
        $('#myForm').ajaxSubmit(function (data) {
            if (data.errno == 1) {
                alert(data.errdesc);
            } else {
                alert("操作成功");
                window.parent.document.getElementById("myForm").submit();
            }
        });
    }
</script>
